package constants;

/**
 * @ author 韩
 * time: 2024/5/12 20:03
 */

public class RedisConstants {
    public static final String LOGIN_TOKEN_KEY = "login:token:";
    public static final String MUSIC_COMMENT_KEY = "music:comment:count:";
    public static final String COMMENT_COMMENT_KEY = "comment:comment:count:";
    public static final String MUSIC_LIKE_KEY = "music:like:count:";
    public static final String COMMENT_LIKE_KEY = "comment:like:count:";
    public static final Long LOGIN_TOKEN_TTL = 7L;

    // 一起听聊天室里的聊天室号
    public static final String TOGETHER_ROOM_KEY = "together:room:";

    // 可以统计使用一起听聊天室的用户人数
    public static final String TOGETHER_COUNT_USER_KEY = "together:count:user";

    // 主人Hash键
    public static final String TOGETHER_HASH_OWNER_KEY = "owner";
    // 客人Hash键
    public static final String TOGETHER_HASH_VISITOR_KEY = "visitor";

    // 播放音乐索引的Hash键
    public static final String TOGETHER_HASH_CURRENT_MUSIC_INDEX_KEY = "musicIndex";

    // 播放音乐歌单的Hash键
    public static final String TOGETHER_HASH_CURRENT_MUSIC_SHEET_KEY = "musicSheet";

    // 控制音乐播放的Hash键
    public static final String TOGETHER_HASH_CURRENT_PLAY_STATUS_KEY = "playStatus";
    // 控制音乐进度的Hash键
    public static final String TOGETHER_HASH_LAST_POSITION_KEY = "musicPosition";


    // 一起听聊天室的用户
    public static final String TOGETHER_USER_KEY = "together:user:";

    // 定时刷到阅读量
    public static final String POST_VIEW_NUM_KEY = "post:view:num:";

    // 存储验证码
    public static final String ADMIN_LOGIN_CAPTCHA_KEY = "admin:login:captcha:";

    public static final String ADMIN_LOGIN_TOKEN_KEY = "admin:login:token:";
}
